# -*- encoding: utf-8 -*-
"""
@File    : grade.py
@Time    : 2020/10/20 17:31
@Author  : lluyao
@Email   : lluyao61@163.com
@Software: PyCharm
"""
grade = input("请输入分数（0-100）:")
if grade.strip('-').isdigit():
    if int(grade) < 0:
        print("您输入的分数小于0，不合法！")
    elif int(grade) > 100:
        print("您输入的分数大于100，不合法！")
    elif 85 <= int(grade) <= 100:
        print("优秀")
    elif 60 <= int(grade) < 85:
        print("良好")
    else:
        print("不及格")
else:
    print("您输入的不是数字！")